﻿using System;
using System.Collections.Generic;

namespace Meqs.Entity
{
    [Serializable]
	public class GradeScoreEducation
	{
		public GradeScoreEducation()
		{
			m_RID = 0;
			m_ExamID = 0;
			m_SubjectID = 0;
			m_Type = 0;
			m_StudentID = 0;
			m_SchoolMark = null;
            m_ClsID = 0;
		}

		#region RID
		
		private int m_RID;
		
		public int RID
		{
			get { return m_RID; }
			set { m_RID = value; }
		}
		
		#endregion
		
		#region ExamID
		
		private int m_ExamID;
		
		public int ExamID
		{
			get { return m_ExamID; }
			set { m_ExamID = value; }
		}
		
		#endregion
		
		#region SubjectID
		
		private int m_SubjectID;
		
		public int SubjectID
		{
			get { return m_SubjectID; }
			set { m_SubjectID = value; }
		}
		
		#endregion
		
		#region Type
		
		private int m_Type;
		
		public int Type
		{
			get { return m_Type; }
			set { m_Type = value; }
		}
		
		#endregion
		
		#region StudentID
		
		private int m_StudentID;
		
		public int StudentID
		{
			get { return m_StudentID; }
			set { m_StudentID = value; }
		}
		
		#endregion
		
		#region Score
		
		private double? m_Score;
		
		public double? Score
		{
			get { return m_Score; }
			set { m_Score = value; }
		}
		
		#endregion
		
		#region SchoolMark
		
		private string m_SchoolMark;
		
		public string SchoolMark
		{
			get { return m_SchoolMark; }
			set { m_SchoolMark = value; }
		}
		
		#endregion

        #region TableName

        private string m_TableName;

        public string TableName
        {
            get { return m_TableName; }
            set { m_TableName = value; }
        }

        #endregion

        #region ClsID

        private int m_ClsID;

        public int ClsID
        {
            get { return m_ClsID; }
            set { m_ClsID = value; }
        }

        #endregion
		
		#region Rewrite Equals and HashCode
		
		/// <summary>
		/// 
		/// </summary>
		public override bool Equals(object obj)
		{
			if( this == obj ) return true;
			if( ( obj == null ) || ( obj.GetType() != GetType() ) ) return false;
			GradeScoreEducation castObj = (GradeScoreEducation) obj;
			return ( castObj != null )
 && m_RID == castObj.RID;		}
		
		/// <summary>
		/// 用唯一值实现GetHashCode
		/// </summary>
		public override int GetHashCode()
		{
			int hash = 87;
			hash = hash * 87
 * m_RID.GetHashCode();			return hash;
		}
		
		#endregion
		
		
	}
}